<!--Begin All-->
    <div class="d_all">
		<!--Menu-->
                    <div class="tt_menu_2">
                    	<div class="pl20 pt10">
                            <?php echo $this->NewsCat(); ?>
                         </div>
                            <?php echo $this->render('/search_news.phtml'); ?>
                    </div>
                    
        <!--End Menu-->
    
    <!--Begin Contents-->
    <div class="d_contents_wrap_2">
    	<div class="d_space_height_10"></div>
		
        <!-- Left -->
        <div class="dd_ctsp">
        
        <?php 
            $news = new Default_Model_News();
            $product = new AdminDthink_Model_Product();
        ?>
        <!-- Kênh tin-->
            <div class="ttct_top">
                <div class="pl20"><?php echo $this->cat_name; ?></div>
            </div>
            
            <div class="dd_ctsp_mid">
                <div class="dd_ctsp_mid">
                
                <?php 
                    if(count($this->data) > 0) :
                    foreach($this->data as $value) : 
                ?>
            	<!--Tin con-->
            	<div class="ttct_tincon">
                	<div class="ttct_tincon_p">
                    	<div class="pl20"><a href="<?php echo $this->baseUrl('news/details?id=') . $value['news_id']; ?>"><img width="200px" height="200px" src="<?php echo $this->baseUrl('/public/files/news/') . $value['news_image']; ?>"></a></div>
                    </div>
                    <div class="ttct_txt">
                    	<div class="pr20">
                            <div class="txt_title"><a href="<?php echo $this->baseUrl('news/details?id=') . $value['news_id']; ?>"><?php echo $value['news_title']; ?></a></div>
                            <div class="txt_date">Ngày 
                            <?php 
                                $sqldate = strtotime($value['create_date']);
                                $create_date = date('d/m/Y', $sqldate);
                                echo $create_date; 
                            ?>
                            </div>
                            <div class="txt_normal">
                           	<?php
                                $content = preg_replace('/\s+/', ' ', $value['news_plaintext']);
                                $content = $product->cut_string($content, 600, 1);
                                echo $content;
                            ?>                           
                            </div>
                            
                            <div class="d_space_height_10"></div>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
                <!--End Tin con-->
                <?php 
                    endforeach;
                    endif;
                ?>
                <div class="pagination">
                    <?php 
                        $currentUrl = '?id=' . $this->cat_id;
                        echo $this->paginationControl($this->data, 'Sliding', 'news/pagination.phtml', array('currentUrl' => $currentUrl)); 
                    ?>
                </div>
                </div>
            </div>
            <div class="dd_ctsp_bot"></div>
        <!-- End Kenh Tin -->

        </div>
        <!-- End Left -->    